x86: limit page type width
authorJan Beulich <jbeulich@suse.com>
Tue, 13 Jun 2017 08:38:51 +0000 (10:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 13 Jun 2017 08:38:51 +0000 (10:38 +0200)
commit1ae4be859b819c147e2034137f519e7fdc2973da
tree26386ce78ace2ce7c51c8cf79e40986afad65f24
parentc9ec0d34e462151d39e0e901b50501db4f6ae78d
x86: limit page type width

There's no reason to burn 4 bits on page type when we only have 7 types
(plus "none") at present. This requires changing one use of
PGT_shared_page, which so far assumed that the type is both a power of
2 and the only type with the high bit set.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm/mem_sharing.c
xen/include/asm-x86/mm.h